package com.atguigu.tingshu.account.mapper;

import com.atguigu.tingshu.model.account.UserAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.bouncycastle.pqc.crypto.newhope.NHSecretKeyProcessor;

import java.math.BigDecimal;

@Mapper
public interface UserAccountMapper extends BaseMapper<UserAccount> {

    public abstract UserAccount checkAmount(@Param(value = "userId") Long userId, @Param(value = "amount")BigDecimal amount);

    public abstract int lockAmount(@Param(value = "userId") Long userId, @Param(value = "amount")BigDecimal amount);

    public abstract int miunsAccount(@Param(value = "userId") Long userId, @Param(value = "amount")BigDecimal amount);

    public abstract int unlockAccount(@Param(value = "userId") Long userId, @Param(value = "amount")BigDecimal amount);
}
